package com.jlh.jdk9.process;
//
//import java.time.Duration;
//import java.time.Instant;
//import java.util.Optional;
//
///**
// * Created by jlh
// * On 2017/3/31 0031.
// */
//public class Main {
//    public static void main(String[] args) {
//        ProcessHandle processHandle = ProcessHandle.current();
//        long PID = processHandle.getPid();
//        System.out.println(PID);
//        ProcessHandle.Info procInfo = processHandle.info();
//        Optional<String[]> argsp = procInfo.arguments();
//        Optional<String> cmd =  procInfo.commandLine();
//        Optional<Instant> startTime = procInfo.startInstant();
//        Optional<Duration> cpuUsage = procInfo.totalCpuDuration();
//    }
//}
